import request from '@/utils/request'

// 查询装修情况列表
export function listDecoration(query) {
  return request({
    url: '/house/decoration/list',
    method: 'get',
    params: query
  })
}

// 查询装修情况详细
export function getDecoration(decorationId) {
  return request({
    url: '/house/decoration/' + decorationId,
    method: 'get'
  })
}

// 新增装修情况
export function addDecoration(data) {
  return request({
    url: '/house/decoration',
    method: 'post',
    data: data
  })
}

// 修改装修情况
export function updateDecoration(data) {
  return request({
    url: '/house/decoration',
    method: 'put',
    data: data
  })
}

// 删除装修情况
export function delDecoration(decorationId) {
  return request({
    url: '/house/decoration/' + decorationId,
    method: 'delete'
  })
}
